package src.main.BehavioralPatterns.Observer;

// 具体观察者。手机App
public class MobileApp implements Observer {
    // 手机APP接收到更新后的处理逻辑
    @Override
    public void update(float temperature, float humidity, float pressure) {
        System.out.printf("[手机APP] 天气更新! %.1f°C | %.1fhPa\n", temperature, pressure);
    }
}
